* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, Tahoma, Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    min-width: 1000px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
}

sup {
    font-size: 75%;
    vertical-align: super;
    line-height: 0;
    font-weight: 400;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border-radius: var(--radius-md);
    overflow: hidden;
}

table caption {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-heading);
}

table caption button {
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-size: 13px;
    background-color: var(--color-gray-100);
    color: var(--color-text);
    transition: all 0.2s ease;
}

table caption button:hover {
    background-color: var(--color-gray-200);
}

th,
td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    word-break: break-word;
    word-wrap: break-word;
    font-size: 14px;
}

th {
    font-weight: 600;
    background-color: var(--color-gray-50);
    color: var(--color-text-heading);
}

td {
    background-color: var(--color-background-card);
}

a,
button {
    cursor: pointer;
    transition: all 0.2s ease;
}

a {
    color: var(--color-text-link);
    text-decoration: none;
}

a:hover {
    color: var(--color-text-link-hover);
    text-decoration: underline;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 16px 0;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text-heading);
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Code and Pre elements */
code,
pre {
    font-size: 13px;
}

code {
    background-color: var(--color-gray-50);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

pre {
    background-color: var(--color-gray-50);
    padding: 16px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    line-height: 1.4;
    border: 1px solid var(--color-border);
}

blockquote {
    margin: 0 0 .5em 0;
    padding: .2em;
    border-left: 4px solid var(--color-gray-200);
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text-subtle);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}